\usepackage[no-math]{fontspec}

\defaultfontfeatures{Scale=MatchLowercase,Mapping=tex-text}
\setmainfont{Sanskrit 2003:script=deva}
\setromanfont{Minion Pro}
\usepackage{pdfpages}
\usepackage{xunicode}
\usepackage{xltxtra}
\usepackage{multicol}
\usepackage{fullpage}
\usepackage[normalleading]{savetrees}
\addtolength{\evensidemargin}{-0.5cm}
\addtolength{\oddsidemargin}{0.5cm}
\usepackage{fancyhdr}
\usepackage[titles]{tocloft}
\renewcommand{\cftchappagefont}{\minionb}
\renewcommand{\cftpartpagefont}{\minionb}
\renewcommand{\cftsecpagefont}{\minion}
\renewcommand{\cftpartfont}{\sffamily\Large}
\pagestyle{fancyplain}
\renewcommand\contentsname{अनुक्रमणिका}
\makeatletter
\renewcommand\section{\resetShloka\@startsection {section}{1}{\z@}%
																	%{2.3ex \@plus.2ex}%
                                   %{-3.5ex \@plus -1ex \@minus -.2ex}%
                                   %{2.3ex \@plus.2ex}%
                                   {10pt}
                                   {2pt}
                                   {\normalfont\LARGE\bfseries}}
\renewcommand\chapter{\resetShloka\@startsection {chapter}{1}{\z@}%
																	 {10pt}
																	 {2pt}
                                   {\normalfont\LARGE\bfseries}}

\makeatother

\setcounter{secnumdepth}{-1}
%for weird reasons this does not bookmark the section start, but the start of text in the section!!!
%\renewcommand\thesection{}
\renewcommand{\sectionmark}[1]{%
\markboth{\large #1}{}}
\renewcommand{\subsectionmark}[1]{%
\markboth{\large #1}{}}
%\renewcommand{\chaptermark}[1]{%
%\markboth{\large #1}{}}

\newcommand{\calibri}{\font\x="Minion Pro" at 14pt \x}
\newcommand{\minion}{\font\x="Minion Pro" at 14pt \x}
\newcommand{\minionb}{\font\x="Minion Pro Bold" at 14pt \x}
\newcommand{\dnfont}{\font\x="Sanskrit 2003:script=deva" at 14pt \x}
\newcommand{\sect}[1]{%
\section[#1]{॥#1॥}}
\addtolength{\headheight}{20pt}
\lhead[\fancyplain{}{\calibri \thepage}]
   {\fancyplain{}{\small \leftmark}}
\rhead[\fancyplain{}{\small \leftmark}]
   {\fancyplain{}{\calibri \thepage}}
%\cfoot{\framebox{\framebox{\calibri \quad\thepage\quad}}}
\cfoot{}

%\renewcommand{\headrulewidth}{0.4pt}
%\renewcommand{\footrulewidth}{0.4pt}

\let\origdoublepage\cleardoublepage
\newcommand{\clearemptydoublepage}{%
  %\clearpage
  {\pagestyle{empty}\origdoublepage}%
}

\newcommand{\dnsub}[1]{
\medskip
\centerline{\Large\bfseries ॥#1॥ }
\smallskip
}

\addtolength{\parskip}{4pt}
\addtolength{\headsep}{10pt}
\setlength{\columnseprule}{1pt}
\setlength{\columnsep}{30pt}
\usepackage[a5paper,bookmarks=true,bookmarksopen=true,xetex,colorlinks=true,
linkcolor=black,					% colour of internal links
citecolor=cyan,					% colour of links to bibliography
filecolor=magenta,			% colour of file links
urlcolor=black					% colour of external links
]{hyperref}

\usepackage{shlokabook}
\usepackage{bbding}
\newcommand{\closesection}{\medskip\centerline{\EightFlowerPetal\EightFlowerPetal\EightFlowerPetal}}
%\newcommand{\closesection}{\medskip\centerline{\FiveFlowerOpen\FiveFlowerOpen\FiveFlowerOpen}}
\hbadness=10000
\vbadness=10000
